package com.shop.mapper;

import com.shop.entity.seckillProducts;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.ModelAttribute;

import java.util.List;

@Mapper
public interface seckillProductsMapper {
    List<seckillProducts> listSeckillProducts();

    void addSeckillProducts(@ModelAttribute seckillProducts seckillProducts);

    void updateSeckillProducts(@Param("productId") int productId, @Param("userId") int userId , @Param("canReserve") String canReserve);

    void updateSeckillProducts(seckillProducts seckillProducts);
}
